<html>
<head><meta charset="utf-8"><title>Help testing the performance of Vec::dedup · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Help.20testing.20the.20performance.20of.20Vec.3A.3Adedup.html">Help testing the performance of Vec::dedup</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226691995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Help%20testing%20the%20performance%20of%20Vec%3A%3Adedup/near/226691995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Soveu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Help.20testing.20the.20performance.20of.20Vec.3A.3Adedup.html#226691995">(Feb 17 2021 at 17:18)</a>:</h4>
<p>Hi, I'm looking for some people that would take the code from here <a href="https://github.com/rust-lang/rust/pull/82191">https://github.com/rust-lang/rust/pull/82191</a> and measure the impact of it in different situations.<br>
I have measured around 10% better performance if T is small (fits in cpu register), otherwise perf is the same<br>
Also changing <code>ptr::copy</code> in line 1598 to conditional <code>copy_nonoverlapping</code> seems to be faster on my intel laptop and much slower on amd one<br>
I'm curious if someone can reproduce this</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>